// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false;

//引入aioxs
import Axios from 'axios'
Axios.defaults.baseURL = 'http://www.sinya.online/api/'
Vue.prototype.$axios = Axios

//引入mint-ui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import './assets/ttf/iconfont.css'
Vue.use(MintUI)

//引入自己的全局组件
import MyUl from '@components/common/MyUl'
import MyLi from '@components/common/MyLi'
import NavBar from '@components/common/NavBar'
//注册成全局组件
Vue.component(MyUl.name,MyUl)
Vue.component(MyLi.name,MyLi)
Vue.component(NavBar.name,NavBar)
//引入自己写的样式作为全局样式
import '@/assets/css/global.css'

//引入自己的工具类
import moment from './utils/format'
Vue.filter('formatDate',moment.formatDate);
Vue.filter('formatTime',moment.formatTime);


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
